home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
help
/
DIVISION
< prev
next >
Wrap
Text File
|
1994-09-21
|
1KB
|
28 lines
DIVISION:
There are two type of division operators, the `/' and the '\'.
The 1st is called "right-division", and the 2nd is called
"left-division".
Right-Division: For scalars the result is what you would
expect. For matrices, A / B is the same as A * inv(B). But,
what really happens is A / B is implemented like (B' \ A')'
The element-by-element version of right-division, `./' is
simply A[i;j] / B[i;j].
Left-Division: For scalars the result of A \ B is B / A. For
matrices the result is the solution to A*X = B. If B has more
than one column, then the result is an X that contains a
column for every column of B, which are the solutions to
A*x[;i] = B[;i].
When the system of equations is determined (square), then
Gaussian elimination is used. Otherwise, a least-squares
solution is performed. If the system is under-determined, a
minimum-norm solution is obtained. For the least-squares
solutions the LAPACK subroutines DGESSL, and ZGESSL are used.
The element-by-element version, `.\' is simply B[i;j] /
A[i;j].